package com.zjcode.cdcer.service.impl;

import com.zjcode.cdcer.mapper.CerRecordSerialInfoMapper;
import com.zjcode.cdcer.model.CerRecordSerialInfo;
import com.zjcode.cdcer.service.CerRecordSerialInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CerRecordSerialInfoServiceImpl implements CerRecordSerialInfoService {

    @Autowired
    private CerRecordSerialInfoMapper cerRecordSerialInfoMapper;

    @Override
    public String getSerialNumber(String orgId, String year) {
        return cerRecordSerialInfoMapper.getSerialNumber(orgId, year);
    }

    @Override
    public void insertInfo(CerRecordSerialInfo info) {
        cerRecordSerialInfoMapper.insertInfo(info);
    }

    @Override
    public void updateInfo(String orgId, String serialNum) {
        cerRecordSerialInfoMapper.updateInfo(orgId, serialNum);
    }
}
